define(["jquery","text!modules/footer/footer.html","css!modules/footer/footer.css"],function($,html){
	function render(){
		$("body").append(html);
		$(".footer li").on("touchstart",function(){
			var index=$(this).index();
			for(var i=0;i<5;i++){
				$(".footer .top").eq(i).css("backgroundImage","url(img/footer"+i+".png)");
			}
				$(".footer .top").eq(index).css("backgroundImage","url(img/f"+index+".png)");
		})
		if(localStorage.getItem("number")){
			$(".footer .number").html(localStorage.getItem("number"));
			
		}	
	}
	return{
		render:render
	}
})